﻿using System.Windows.Input;
using Acme.Common.Infrastructure;
using Acme.Common.Services;
using Acme.MVVM.Scenarios.Infrastructure;

namespace Acme.MVVM.Scenarios.Views
{
    public class DialogServiceViewModel : ScenarioViewModelBase
    {

        readonly IDialogService _dialogService;

        public ICommand ShowDialogCommand
        {
            get { return new RelayCommand(() => _dialogService.ShowMessage("Hello from view model IDialogService", "MVVM Scenario", DialogButton.OK, DialogImage.Information)); }
        }

        public override string TabHeaderText
        {
            get { return "Dialog Service"; }
        }

        public DialogServiceViewModel(IDialogService dialogService)
        {
            _dialogService = dialogService;
        }
    }
}
